<template>
  <div class="dark-theme-login">
    <el-form class="form" size="small">
      <div class="head">
        <img class="head-icon" :src="LogoBlackGreen" />
        <span class="head-title">小萤星</span>
      </div>
      <div class="form-main">
        <el-form-item>
          <el-input placeholder="账户">
            <img slot="prefix" :src="AccountIcon" class="account-icon" />
          </el-input>
        </el-form-item>
        <el-form-item>
          <el-input placeholder="密码" type="password">
            <img slot="prefix" :src="PasswordIcon" class="account-icon" />
          </el-input>
        </el-form-item>

        <div class="opr">
          <div class="auto-login">
            <el-checkbox />
            自动登录
          </div>
          <div class="forget-pwd">忘记密码</div>
        </div>
        <el-button type="primary" class="login-btn" size="small"
          >登录</el-button
        >
        <div class="register">注册账户</div>
      </div>
    </el-form>
  </div>
</template>

<script>
import AccountIcon from "@/assets/imgs/account_dark_theme.png";
import PasswordIcon from "@/assets/imgs/password_dark_theme.png";
import LogoBlackGreen from "@/assets/imgs/logo_black_green.png";
export default {
  name: "DarkThemeLogin",
  data() {
    return {
      AccountIcon,
      PasswordIcon,
      LogoBlackGreen,
    };
  },
};
</script>

<style lang="less" scoped>
.dark-theme-login {
  position: relative;
  min-height: 100vh;
  background-image: url("~@/assets/imgs/dark_login_bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  .form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 296px;
    .head {
      display: flex;
      align-items: center;
      height: 37px;
      margin-bottom: 14px;
      .head-title {
        margin-left: 13px;
        font-size: 32px;
        font-weight: 700;
        color: #0a7f63;
        vertical-align: bottom;
      }
    }
    .form-main {
      width: 100%;
      /deep/.el-input__inner {
        // padding-left: 36px;
        // font-size: 16px;
        background-color: #003528;
        color: #fff;
      }
      /deep/.el-input__prefix {
        padding: 2px 0 0 5px;
      }
      .el-input + .el-input {
        margin-top: 19px;
      }

      .opr {
        margin: 20px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        .auto-login {
          color: #fff;
        }
        .forget-pwd {
          margin-right: 5px;
          color: #0a7f63;
        }
      }

      .login-btn {
        width: 100%;
        background-color: #0a7f63;
        border-color: #0a7f63;
      }

      .register {
        margin-right: 5px;
        margin-top: 20px;
        font-size: 14px;
        text-align: right;
        color: #0a7f63;
      }
    }
  }
}
</style>
